package com.healthcloud.service.impl;

import com.healthcloud.dao.losewisdom.LoseWisdomMmseDao;
import com.healthcloud.dto.req.losewisdom.LoseWisdomListReq;
import com.healthcloud.dto.req.losewisdom.LoseWisdomMmseListDto;
import com.healthcloud.entity.losewisdom.LoseWisdomMmseEntity;
import com.healthcloud.service.losewisdom.LoseWisdomMmseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("loseWisdomMmseService")
@Transactional(rollbackFor = Exception.class)
public class LoseWisdomMmseServiceImpl implements LoseWisdomMmseService {

	@Autowired
	private LoseWisdomMmseDao loseWisdomMmseDao;
	
	@Override
	public LoseWisdomMmseEntity queryObject(Integer id){
		return loseWisdomMmseDao.queryObject(id);
	}
	
	@Override
	public List<LoseWisdomMmseListDto> queryList(LoseWisdomListReq bean, PageParam pageParam){
		return loseWisdomMmseDao.queryList(bean, pageParam);
	}
	
	@Override
	public int queryTotal(LoseWisdomListReq bean){
		return loseWisdomMmseDao.queryTotal(bean);
	}
	
	@Override
	public void save(LoseWisdomMmseEntity loseWisdomMmse){
		loseWisdomMmseDao.save(loseWisdomMmse);
	}
	
	@Override
	public void update(LoseWisdomMmseEntity loseWisdomMmse){
		loseWisdomMmseDao.update(loseWisdomMmse);
	}
	
	@Override
	public void delete(Integer id){
		loseWisdomMmseDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		loseWisdomMmseDao.deleteBatch(ids);
	}
	
}
